Introduction: This is a detailed page for configuring Apache + PHP + MySql in Mac OS X. It introduces the related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Install nginx and php on mac. I. Previous words: 1.1. environment selection: re-configure php on mac. Originally, the mac was equipped with apach, php, and pgsql. if the figure is simple, you can use it directly, but before installation, I will:
1.1.
Configure Apache + PHP + MySQL in Mac OS XMac OS X has built-in Apache and PHP, so it's easy to use. This article takes Mac OS X 10.6.3 and 10.8.1 as an example. The main contents include:
Launch Apache
Running PHP
Install MySQL
Compiling a tutorial on Mac OS to install the NGINX+PHP+MARIADB development environment, NGINXMARIADB
Because of the urine nature of Oracle. MARIADB should have replaced MySQL. So abandon MySQL.
1, compile NginxDownload Nginx,openssl,pcre
Install and configure nginx, mysql, and php-fpm using homebrew on mac. Nginx
I. preface:
1.1. environment selection:
Re-configure php on mac. Originally, the mac was equipped with apach, php, and pgsql. if the figure is simple, you can use it
: This article describes how to install different versions of php Through brew in Mac. For more information about PHP tutorials, see. Apache and php are already included in mac OS X 10.9.5, but they are not enabled by default.
The default APACHE
I. Preface:1.1. Environment selection:Re-configure php on mac. Originally, the mac was equipped with apach, php, and pgsql. If the figure is simple, you can use it directly, however, before installation, I carefully thought about several
The MAC OS X 10.9.5 system has its own Apache and PHP, but it is not enabled by default, we will enable them.
the default version of Apache is apache/2.2.26 (Unix), PHP 5.4.30.
as the debugger requires, I need to
install the lower version of php5.
This is a super detailed configuration of Mac OS under the Php+mysql+apache article. Very detailedMost of my configuration is to refer to the above content, for example, PHP can not connect to the database, is to change the default php.ini in the
As we all know, Mac OSX has built-in Apache HTTP server and PHP, with a simple configuration to use the PHP environment, local testing is very good.1. Enable Apache Http Server ( sudo apachectl start)Remember the following command:Open Terminal
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.